eager 0.1.0

Crate for eager macro expansion.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented2 out of 3 items with examples
  • Size
  • Source code size: 57.84 kB
  • Documentation size: 756.18 kB
  • Links
  • Emoun/eager
    11 1 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Emoun

eager

Build Status

Rust crate for simulating eager macro expansion.

Example

#[macro_use]
extern crate eager;

//Declare an eager macro
eager_macro_rules!{ $eager_1
    macro_rules! plus_1{
        ()=>{+ 1};
    }
}

fn main(){
	// Use the macro inside an eager! call to expand it eagerly
	assert_eq!(4, eager!{2 plus_1!() plus_1!()});
}

License

Licensed under the MIT license.